package com.msh.platform.elm.service.impl;

import com.msh.platform.elm.dao.AdmUserRepository;
import com.msh.platform.elm.entity.AdmUser;
import com.msh.platform.elm.service.AdmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdmUserServiceImpl implements AdmUserService {

    @Autowired
    private AdmUserRepository admUserRepository;
    
    public AdmUser getAdmUser(String phone, String password) {
        AdmUser admUser = admUserRepository.findByLoginNameAndPasswd(phone,password);
        return admUser;
    }
}
